package com.hz.service.impl;

import com.hz.dao.WashHouseDao;
import com.hz.pojo.WashHouse;
import com.hz.pojo.WashMachine;
import com.hz.service.WashHouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WashHouseServiceImpl implements WashHouseService {

    @Resource
    private WashHouseDao washHouseDao;


    @Override
    public List<WashMachine> getWashMachineInfo(Long washhouse_id) throws Exception {

        return washHouseDao.getWashMachineInfo(washhouse_id);
    }

    @Override
    public List<WashHouse> getWashHouseAllInfo() throws Exception {

        return washHouseDao.getWashHouseAllInfo();
    }

    @Override
    public int addWashHouse(WashHouse washHouse) throws Exception {

        return washHouseDao.addWashHouse(washHouse);
    }
}
